#!/bin/bash
# Time: 2023-02-06 03:05:45
# Desc: 

BUILDARCH=$(uname -m)

case $BUILDARCH in
    "aarch64")
        sh lorax_make_iso.sh -v 23 \
            -s https://mirrors.opencloudos.tech/opencloudos-stream/releases/23/BaseOS/$BUILDARCH/Packages/ \
            -s https://mirrors.opencloudos.tech/opencloudos-stream/releases/23/AppStream/$BUILDARCH/Packages/ \
            -d "20230830" \
            -o release
        break
        ;;
    "x86_64")
        sh lorax_make_iso.sh -v 23 \
            -s https://mirrors.opencloudos.tech/opencloudos-stream/releases/23/BaseOS/$BUILDARCH/Packages/ \
            -s https://mirrors.opencloudos.tech/opencloudos-stream/releases/23/AppStream/$BUILDARCH/Packages/ \
            -d "20230830" \
            -o release
        break
        ;;
    "loongarch64")
        sh lorax_make_iso.sh -v 23 \
            -s https://build.stream.opencloudos.tech/kojifiles/repos/dist-ocs23-loongarch64-build/latest/loongarch64/ \
            -d "20240620" \
            -o release \
        break
        ;;
    *)
        echo "Current architecture $BUILDARCH not supported"
        ;;
esac
